Optimal. Leaf size=169 \[ \frac{2 (a \sec (c+d x)+a)^{11/2}}{11 a^4 d}-\frac{2 (a \sec (c+d x)+a)^{9/2}}{3 a^3 d}+\frac{2 (a \sec (c+d x)+a)^{7/2}}{7 a^2 d}-\frac{2 a^{3/2} \tanh ^{-1}\left (\frac{\sqrt{a \sec (c+d x)+a}}{\sqrt{a}}\right )}{d}+\frac{2 (a \sec (c+d x)+a)^{5/2}}{5 a d}+\frac{2 (a \sec (c+d x)+a)^{3/2}}{3 d}+\frac{2 a \sqrt{a \sec (c+d x)+a}}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.136147, antiderivative size = 169, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 5, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.217, Rules used = {3880, 88, 50, 63, 207} \[ \frac{2 (a \sec (c+d x)+a)^{11/2}}{11 a^4 d}-\frac{2 (a \sec (c+d x)+a)^{9/2}}{3 a^3 d}+\frac{2 (a \sec (c+d x)+a)^{7/2}}{7 a^2 d}-\frac{2 a^{3/2} \tanh ^{-1}\left (\frac{\sqrt{a \sec (c+d x)+a}}{\sqrt{a}}\right )}{d}+\frac{2 (a \sec (c+d x)+a)^{5/2}}{5 a d}+\frac{2 (a \sec (c+d x)+a)^{3/2}}{3 d}+\frac{2 a \sqrt{a \sec (c+d x)+a}}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3880
Rule 88
Rule 50
Rule 63
Rule 207
Rubi steps
\begin{align*} \int (a+a \sec (c+d x))^{3/2} \tan ^5(c+d x) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{(-a+a x)^2 (a+a x)^{7/2}}{x} \, dx,x,\sec (c+d x)\right )}{a^4 d}\\ &=\frac{\operatorname{Subst}\left (\int \left (-3 a^2 (a+a x)^{7/2}+\frac{a^2 (a+a x)^{7/2}}{x}+a (a+a x)^{9/2}\right ) \, dx,x,\sec (c+d x)\right )}{a^4 d}\\ &=-\frac{2 (a+a \sec (c+d x))^{9/2}}{3 a^3 d}+\frac{2 (a+a \sec (c+d x))^{11/2}}{11 a^4 d}+\frac{\operatorname{Subst}\left (\int \frac{(a+a x)^{7/2}}{x} \, dx,x,\sec (c+d x)\right )}{a^2 d}\\ &=\frac{2 (a+a \sec (c+d x))^{7/2}}{7 a^2 d}-\frac{2 (a+a \sec (c+d x))^{9/2}}{3 a^3 d}+\frac{2 (a+a \sec (c+d x))^{11/2}}{11 a^4 d}+\frac{\operatorname{Subst}\left (\int \frac{(a+a x)^{5/2}}{x} \, dx,x,\sec (c+d x)\right )}{a d}\\ &=\frac{2 (a+a \sec (c+d x))^{5/2}}{5 a d}+\frac{2 (a+a \sec (c+d x))^{7/2}}{7 a^2 d}-\frac{2 (a+a \sec (c+d x))^{9/2}}{3 a^3 d}+\frac{2 (a+a \sec (c+d x))^{11/2}}{11 a^4 d}+\frac{\operatorname{Subst}\left (\int \frac{(a+a x)^{3/2}}{x} \, dx,x,\sec (c+d x)\right )}{d}\\ &=\frac{2 (a+a \sec (c+d x))^{3/2}}{3 d}+\frac{2 (a+a \sec (c+d x))^{5/2}}{5 a d}+\frac{2 (a+a \sec (c+d x))^{7/2}}{7 a^2 d}-\frac{2 (a+a \sec (c+d x))^{9/2}}{3 a^3 d}+\frac{2 (a+a \sec (c+d x))^{11/2}}{11 a^4 d}+\frac{a \operatorname{Subst}\left (\int \frac{\sqrt{a+a x}}{x} \, dx,x,\sec (c+d x)\right )}{d}\\ &=\frac{2 a \sqrt{a+a \sec (c+d x)}}{d}+\frac{2 (a+a \sec (c+d x))^{3/2}}{3 d}+\frac{2 (a+a \sec (c+d x))^{5/2}}{5 a d}+\frac{2 (a+a \sec (c+d x))^{7/2}}{7 a^2 d}-\frac{2 (a+a \sec (c+d x))^{9/2}}{3 a^3 d}+\frac{2 (a+a \sec (c+d x))^{11/2}}{11 a^4 d}+\frac{a^2 \operatorname{Subst}\left (\int \frac{1}{x \sqrt{a+a x}} \, dx,x,\sec (c+d x)\right )}{d}\\ &=\frac{2 a \sqrt{a+a \sec (c+d x)}}{d}+\frac{2 (a+a \sec (c+d x))^{3/2}}{3 d}+\frac{2 (a+a \sec (c+d x))^{5/2}}{5 a d}+\frac{2 (a+a \sec (c+d x))^{7/2}}{7 a^2 d}-\frac{2 (a+a \sec (c+d x))^{9/2}}{3 a^3 d}+\frac{2 (a+a \sec (c+d x))^{11/2}}{11 a^4 d}+\frac{(2 a) \operatorname{Subst}\left (\int \frac{1}{-1+\frac{x^2}{a}} \, dx,x,\sqrt{a+a \sec (c+d x)}\right )}{d}\\ &=-\frac{2 a^{3/2} \tanh ^{-1}\left (\frac{\sqrt{a+a \sec (c+d x)}}{\sqrt{a}}\right )}{d}+\frac{2 a \sqrt{a+a \sec (c+d x)}}{d}+\frac{2 (a+a \sec (c+d x))^{3/2}}{3 d}+\frac{2 (a+a \sec (c+d x))^{5/2}}{5 a d}+\frac{2 (a+a \sec (c+d x))^{7/2}}{7 a^2 d}-\frac{2 (a+a \sec (c+d x))^{9/2}}{3 a^3 d}+\frac{2 (a+a \sec (c+d x))^{11/2}}{11 a^4 d}\\ \end{align*}
Mathematica [A] time = 0.48923, size = 112, normalized size = 0.66 \[ \frac{2 (a (\sec (c+d x)+1))^{3/2} \left (\sqrt{\sec (c+d x)+1} \left (105 \sec ^5(c+d x)+140 \sec ^4(c+d x)-325 \sec ^3(c+d x)-534 \sec ^2(c+d x)+327 \sec (c+d x)+1656\right )-1155 \tanh ^{-1}\left (\sqrt{\sec (c+d x)+1}\right )\right )}{1155 d (\sec (c+d x)+1)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.237, size = 429, normalized size = 2.5 \begin{align*} -{\frac{a}{36960\,d \left ( \cos \left ( dx+c \right ) \right ) ^{5}}\sqrt{{\frac{a \left ( \cos \left ( dx+c \right ) +1 \right ) }{\cos \left ( dx+c \right ) }}} \left ( 1155\,\sqrt{2} \left ( \cos \left ( dx+c \right ) \right ) ^{5}\arctan \left ( 1/2\,\sqrt{2}\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}} \right ) \left ( -2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}} \right ) ^{11/2}+5775\,\sqrt{2} \left ( \cos \left ( dx+c \right ) \right ) ^{4}\arctan \left ( 1/2\,\sqrt{2}\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}} \right ) \left ( -2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}} \right ) ^{11/2}+11550\,\sqrt{2} \left ( \cos \left ( dx+c \right ) \right ) ^{3}\arctan \left ( 1/2\,\sqrt{2}\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}} \right ) \left ( -2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}} \right ) ^{11/2}+11550\,\sqrt{2} \left ( \cos \left ( dx+c \right ) \right ) ^{2}\arctan \left ( 1/2\,\sqrt{2}\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}} \right ) \left ( -2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}} \right ) ^{11/2}+5775\,\sqrt{2}\cos \left ( dx+c \right ) \arctan \left ( 1/2\,\sqrt{2}\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}} \right ) \left ( -2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}} \right ) ^{11/2}+1155\,\sqrt{2}\arctan \left ( 1/2\,\sqrt{2}\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}} \right ) \left ( -2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}} \right ) ^{11/2}-105984\, \left ( \cos \left ( dx+c \right ) \right ) ^{5}-20928\, \left ( \cos \left ( dx+c \right ) \right ) ^{4}+34176\, \left ( \cos \left ( dx+c \right ) \right ) ^{3}+20800\, \left ( \cos \left ( dx+c \right ) \right ) ^{2}-8960\,\cos \left ( dx+c \right ) -6720 \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.07939, size = 921, normalized size = 5.45 \begin{align*} \left [\frac{1155 \, a^{\frac{3}{2}} \cos \left (d x + c\right )^{5} \log \left (-8 \, a \cos \left (d x + c\right )^{2} + 4 \,{\left (2 \, \cos \left (d x + c\right )^{2} + \cos \left (d x + c\right )\right )} \sqrt{a} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} - 8 \, a \cos \left (d x + c\right ) - a\right ) + 4 \,{\left (1656 \, a \cos \left (d x + c\right )^{5} + 327 \, a \cos \left (d x + c\right )^{4} - 534 \, a \cos \left (d x + c\right )^{3} - 325 \, a \cos \left (d x + c\right )^{2} + 140 \, a \cos \left (d x + c\right ) + 105 \, a\right )} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}}}{2310 \, d \cos \left (d x + c\right )^{5}}, \frac{1155 \, \sqrt{-a} a \arctan \left (\frac{2 \, \sqrt{-a} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{2 \, a \cos \left (d x + c\right ) + a}\right ) \cos \left (d x + c\right )^{5} + 2 \,{\left (1656 \, a \cos \left (d x + c\right )^{5} + 327 \, a \cos \left (d x + c\right )^{4} - 534 \, a \cos \left (d x + c\right )^{3} - 325 \, a \cos \left (d x + c\right )^{2} + 140 \, a \cos \left (d x + c\right ) + 105 \, a\right )} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}}}{1155 \, d \cos \left (d x + c\right )^{5}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 4.87729, size = 298, normalized size = 1.76 \begin{align*} \frac{\sqrt{2}{\left (\frac{1155 \, \sqrt{2} a^{2} \arctan \left (\frac{\sqrt{2} \sqrt{-a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + a}}{2 \, \sqrt{-a}}\right )}{\sqrt{-a}} + \frac{2 \,{\left (1155 \,{\left (a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - a\right )}^{5} a^{2} - 770 \,{\left (a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - a\right )}^{4} a^{3} + 924 \,{\left (a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - a\right )}^{3} a^{4} - 1320 \,{\left (a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - a\right )}^{2} a^{5} - 6160 \,{\left (a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - a\right )} a^{6} - 3360 \, a^{7}\right )}}{{\left (a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - a\right )}^{5} \sqrt{-a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + a}}\right )} \mathrm{sgn}\left (\cos \left (d x + c\right )\right )}{1155 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]